import { getDashboard } from '@/api/dashboard'
const state = {
  dashBoardInfo: {}
}
const mutations = {
  setDashBoardInfo(state, payload) {
    state.dashBoardInfo = payload
  }
}

const actions = {
  async getDashBoardInfo(context) {
    const res = await getDashboard()
    console.log(res.data)
    context.commit('setDashBoardInfo', res.data)
  }

}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
